package Operation;

import Account.Account;
import Account.AcountList;

import java.util.Scanner;

public class ChangePasswordOperation extends IOperation{
    public ChangePasswordOperation() {
    }

    @Override
    public void work(Account account,AcountList acountList) {
        System.out.println("修改密码");
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        account.setPassWord(str);
        System.out.println("修改成功");

    }
}
